Hey,
I am trying to achieve an autofocused depth of field effect on a KeyShot animation.
My camera path was imported as an .abc file from Blender. The camera is moving around an object in a pretty organic way. In a perfect circle motion, I could set the dof distance to the distance between the camera and my object - in my case, this distance changes constantly.
I am trying to write a script that would get the camera-object distance once per frame and sets the dof distance accordingly. This would all work, but I can’t find any method or property in the scripting documentation that would allow me to change the dof value.
I mean, there are things like this:
setCameraFocalLength (...)
Sets the focal length of the active camera of the scene.
length = Focal length in mm [5, 200]. *
… but why is there no setCameraDofDistance() ?